<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      "use strict";
      /* 
        1. 执行函数
        2. 可以给this传参
      */
      // function fn( this,x, y) {
      function fn(x, y) {
        console.log("hello", x, y, this);
      }
      fn(10, 20);
      fn.call({ a: 1 }, 1, 2);
      fn.apply({ a: 2 }, [3, 4]);

      // console.log(fn.call);
    </script>
  </body>
</html>
